package com.hzit.manager.controller;

import com.hzit.manager.service.IClassesService;
import com.hzit.util.R;
import jdk.nashorn.internal.objects.annotations.Getter;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author wf
 * @since 2024-02-28
 */
@RestController
@RequestMapping("/classes")
public class ClassesController {
	@Autowired
	private IClassesService classesService;

	@GetMapping("/list")
	public R list(){
		return R.ok(classesService.list());
	}
}
